-
-
Notifications
You must be signed in to change notification settings - Fork 514
Symbol not found: _syslog$DARWIN_EXTSN with version 2.7.6 #807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I don't know if anything changed in the way wheels are built for OSX. I didn't change anything relevant in the build chain. FYI the Travis jobs which built the packages are this for psycopg2 and this for psycopg2-binary. They were tested but only on the same Travis machine. That's all I can do. I don't own any OSX machine to play with. If you can suggest a fix that'd be welcome. Thank you very much. |
Got the same error, OSX 10.12.6 as well, but python 2.7.15.
To me it looks like the latest OS X uses newer libcrypto, perhaps when creating the binary version one should make it compile the library statically? From my own experience I remember it is difficult to force compiler on Mac to do it and it only worked when dylib was not present in the path so the compiler failed back to the .a file) Out of curiosity anyone knows if cffi when used is tied to specific library version or does it use whatever is available? I'm wondering if that could solve this kind of issues once and for all, and as a bonus would make the library operational on pypy. |
I got the same error; OSX 10.12.6, Python 3.7
psycopg2 2.7.5 works; 2.7.6 gives the error. (Temporary workaround |
So could the problem be an updated version of crypto on the Travis machines which is not compatible with OSX 10.12? Can it be solved by compiling crypto locally? |
Not sure I understand the question but at least in my and @maerteijn's case looks like everything works fine if psycopg2 is compiled locally i.e. |
@takeda of course: this is a problem with the binary package. |
Test packages to be release to check if #807 is fixed. According to https://docs.travis-ci.com/user/reference/osx/#os-x-version we built the packages with OS X 10.13 and Xcode 9.4.1. Because the error was reported on 10.12, trying to build with Xcode 9.2 (the most recent available on OSX 10.12). [skip ci]
According to https://docs.travis-ci.com/user/reference/osx/#os-x-version we built the packages with OS X 10.13 and Xcode 9.4.1. Because the error was reported on 10.12, trying to build with Xcode 9.2 (the most recent available on OSX 10.12). See bug psycopg/psycopg2#807.
This is the list of supported OSX versions on Travis. 2.7.6 was built using OS X 10.13 and Xcode 9.4.1. I'm building test packages using Xcode 9.2, the last available running on OS X 10.12. However, for a reference, 2.7.5 was built with Xcode 8.3. |
I've made test packages available on Test PyPI as Psycopg 2.7.6.1.dev1. Please test them using:
and let me know if they fix the problem. Thank you. |
That version works on my machine. |
I can also confirm these test packages work! |
According to https://docs.travis-ci.com/user/reference/osx/#os-x-version we built the packages with OS X 10.13 and Xcode 9.4.1. Because the error was reported on 10.12, trying to build with Xcode 9.2 (the most recent available on OSX 10.12). See bug psycopg/psycopg2#807.
Thank you all for testing. Psycopg binary packages 2.7.6.1 released. |
It works for me too. Thanks! |
works!! 2019 |
Saves the day! So glad I found this. Still working in 2020. Installing psycopg2-binary did the trick. Thank you! |
You can also obtain a stand-alone package, not requiring a compiler or external libraries: |
Hello, I've tried the above solutions, neither of them work when I try to import the psycopg2 package in IDLE or ATOM. However, when I try to import it within Jupyter, it works. I install the 2.7.6.1 version, then when it didn't work, I reinstalled the 2.8.5 version. Does anyone know why it only works within Jupyter notebooks and not any other editor/IDE? I used the pip installer instead of the conda installer. |
Uh oh!
There was an error while loading. Please reload this page.
Full stacktrace:
This does not happen with the binary wheel version 2.7.5.
Installing from source (
pip install --no-binary :all: "psycopg2==2.7.6"
) does not give any problems.OS: OSX 10.12.6
Python version: 3.7.0
pyenv: 1.2.6
Does this mean Mac OSX Sierra (10.12) is not supported with the binary wheel packages anymore? If this is on purpose, maybe this could be added to the release notes.
The text was updated successfully, but these errors were encountered: